<%--
  Created by IntelliJ IDEA.
  User: luchengdong
  Date: 2018/1/25
  Time: 下午10:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>${requestScope.student == null ? "新增学生" : "编辑学生"}</title>
</head>
<body>
    <h2>${requestScope.student == null ? "新增学生" : "编辑学生"}</h2>
    <form action="/smis/student?operate=update" method="post">
        <input type="hidden" name="sid" value='${requestScope.student.sid}'/>
        姓名:<input name="name" value='${requestScope.student.name}'/><br/>
        年龄:<input type="number" name="age" value='${requestScope.student.age}'/><br/>
        <input type="submit" value='${requestScope.student == null ? "添加" : "修改"}'/>
    </form>
</body>
</html>
